﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Police/Police.master" AutoEventWireup="true"
    CodeFile="TransactList.aspx.cs" Inherits="Police_Select_TransactList" StylesheetTheme="Content" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script type="text/javascript">
        //<![CDATA][
        function CheckAll(oCheckbox) {
            var items = document.getElementsByTagName("INPUT");
            for (i = 0; i < items.length; i++) {
                if (items[i].type == "checkbox") {
                    items[i].checked = oCheckbox.checked;
                }
            }
        }
        //]]>


        function OpenUrl(pp) {

            window.showModalDialog(pp, 'newwindow', 'resizable:yes;scroll:yes;status:no;dialogWidth=1200px;dialogHeight=1000px;center=yes;help=no');
            //            window.location.reload();

        }

    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:RadioButtonList ID="rblTpye" runat="server" AutoPostBack="True" RepeatDirection="Horizontal"
        OnSelectedIndexChanged="rblTpye_SelectedIndexChanged">
        <asp:ListItem Selected="True" Value="0">士兵调入</asp:ListItem>
        <asp:ListItem Value="1">士兵调出</asp:ListItem>
        <asp:ListItem Value="2">内部调动</asp:ListItem>
    </asp:RadioButtonList>
    <ul class="topmenu" id="topmenu" runat="server">
        <li>
            <asp:DropDownList ID="ddlState" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                <asp:ListItem Value="-1">全部</asp:ListItem>
                <asp:ListItem Value="2">审核通过</asp:ListItem>
            </asp:DropDownList>
        </li>
        <li>
            <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">办理</asp:LinkButton>
        </li>
        <li>姓名查询:<asp:TextBox ID="txtQuery" runat="server"></asp:TextBox></li><li>
            <asp:LinkButton ID="btnQuery" runat="server" Text="确定" OnClick="btnQuery_Click" /><asp:Label
                ID="lblQuery" runat="server" Text="" Visible="false"></asp:Label>
        </li>
    </ul>
    <asp:GridView ID="UserGrid" runat="server" AutoGenerateColumns="False" Caption=""
        DataKeyNames="ID" OnRowDataBound="UserGrid_RowDataBound" OnRowCommand="UserGrid_RowCommand">
        <Columns>
            <asp:TemplateField>
                <HeaderTemplate>
                    <input id="ChkAll" type="checkbox" onclick="CheckAll(this)" runat="server" title="全选/取消" />
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="CheckItem" runat="server" />
                </ItemTemplate>
                <HeaderStyle Width="20px" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="5px" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="姓名">
                <ItemTemplate>
                    <%# Eval("SoldierName")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="性别" DataField="Sex" />
            <asp:BoundField HeaderText="入伍时间" DataField="JoinTime" DataFormatString="{0:yyyy-MM-dd}" />
            <asp:TemplateField HeaderText="警衔">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblRank"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="现单位" DataField="OldDepartment" />
            <asp:BoundField HeaderText="拟调往" DataField="TanslateDepartment" />
            <asp:BoundField HeaderText="联系人" DataField="LinkMen" />
            <asp:BoundField HeaderText="备注" DataField="Remark" />
            <asp:BoundField HeaderText="批准人" DataField="AproveMen" />
            <asp:TemplateField HeaderText="当前状态">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblState"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle HorizontalAlign="Left" />
    </asp:GridView>
    <uc1:ListPageContral ID="ListPageContral1" OnPageSizeChange="ListPageContral1_PageSizeChange"
        PageSize="20" runat="server" />
    <div class="prompt">
        <br />
        <asp:Label ID="Prompt" runat="server"></asp:Label>
    </div>
</asp:Content>
